Fixed a bug where the app would crash if an empty user file exists
__dirname is now always used to read/write files within the project directory
The configuration file is now using JSON