Loader should not assume that node command was run from within app folder, so use require.main instead to find out parent folder of main script.