Adding default file extension to script name if not exists