normalise the script name