Fixing relative paths for require to use __dirname