Automatically determine scene directory when using -render (fixes #98).

Amended by llbit:
- use File.isFile instead of File.exists
- fixed NPE error introduced by pull request
Made line endings uniform in file
Fixed error in console output