One little tweak which wasn't necessary under Windows, and this script working under Linux too.