Updated to use __dirname for path instead of CWD

Using __dirname allows relative files to load regardless of the current working directory