I had to modify the bash file, as a freshly created ZFS pool does not contain a ROOT folder and no vme-1 file, which is tested by the script. I removed the test and all was ok. I'm not sure why this test is included.