Fresh installation but "old" or unknown NCP version

When installing NCP via the install.sh script on Debian 10 Nextcloud is installed with the actual version 17.0.2 but the NCP version seams not to be known. First call to ncp-config gives cat: /usr/local/etc/ncp-version: No such file or directory.

Running nc-update gives:

administrator@debian10:~/ncp$ sudo ncp-config
[sudo] password for administrator:
cat: /usr/local/etc/ncp-version: No such file or directory
cat: /usr/local/etc/ncp-version: No such file or directory
cat: /usr/local/etc/ncp-version: No such file or directory
Running nc-update
Downloading updates
Performing updates
grep: /usr/local/etc/ncp-version: No such file or directory
/usr/local/etc/library.sh: line 262: [: : integer expression expected
/usr/local/etc/library.sh: line 264: [: : integer expression expected
/usr/local/etc/library.sh: line 266: [: : integer expression expected
/usr/local/etc/library.sh: line 262: [: : integer expression expected
/usr/local/etc/library.sh: line 264: [: : integer expression expected
/usr/local/etc/library.sh: line 266: [: : integer expression expected
/usr/local/etc/library.sh: line 262: [: : integer expression expected
/usr/local/etc/library.sh: line 264: [: : integer expression expected
/usr/local/etc/library.sh: line 266: [: : integer expression expected
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Hit:4 https://download.docker.com/linux/debian buster InRelease
Fetched 49.3 kB in 0s (112 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 https://download.docker.com/linux/debian buster InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Config value jpeg_quality for app preview set to 60
--2020-01-04 09:52:23--  https://raw.githubusercontent.com/nachoparker/btrfs-snp/master/btrfs-snp
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3496 (3.4K) [text/plain]
Saving to: /usr/local/bin/btrfs-snp
     0K ...                                                   100% 5.82M=0.001s
2020-01-04 09:52:23 (5.82 MB/s) - /usr/local/bin/btrfs-snp saved [3496/3496]
NextCloudPi updated to version v1.16.0
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 https://download.docker.com/linux/debian buster InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Running unattended-upgrades
Unattended upgrades active: yes (autoreboot true)
Installing nc-backup
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 https://download.docker.com/linux/debian buster InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
pigz is already the newest version (2.4-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
NextCloudPi updated to version v1.18.0
Running nc-previews-auto
Automatic preview generation enabled
NextCloudPi updated to version v1.20.1
Done. Press any key...

By the way the same problem is with docker installation.
Maybe install.sh should call ncp-update?

This happens when installing on Armbian Buster as well. Running from armbian-config or installing via curl lead to an old NCP version (1.18 instead of 1.32). Nextcloud is installed correctly with the current version (20.x).
Probably this is caused by the fact that ncp-update is called at the end, but fails with:
Performing updates
There are no commands defined in the “config:system” namespace.

armbian #helios64 same error:

ncp-notify-update
grep: /usr/local/etc/ncp-version: No such file or directory
grep: /usr/local/etc/ncp-version: No such file or directory
grep: /usr/local/etc/ncp-version: No such file or directory
/usr/local/bin/ncp-test-updates: line 20: [: : integer expression expected
/usr/local/bin/ncp-test-updates: line 22: [: : integer expression expected
/usr/local/bin/ncp-test-updates: line 24: [: : integer expression expected
NextCloudPi up to date

How can I find out the NCP Version?
Do I need to manualy add a version number into that file?

Next Try:

sh -x which ncp-check-version