changed incorrect filetype handling

* checks for filename ending in .up or .pas
* if it's not the correct type, prints a warning and tries to compile
anyway