Remove file extension from script