Quote the $0 in the SCRIPTDIR assignment, to avoid expansion due to
spaces.