always return a string from find_script_name

this allows us to avoid nil checks on the return value