When you save a file with save as under Linux, it doesn't add the .panda extension, leading to confusion. Possible Solutions: Add the extension unless it matches /.\w+/