Fixed bug where settings file was generated at root of execution directory, not file directory.