Use basename when checking the script name