Fixed directory/path behaviour: Made it work with absolute path names, fo it's won't break when called from outside the app-directory.