Revert "use mainfile directory as config directory reference"
Revert "use mainfile directory as config directory reference"

This reverts commit 710b89bb59af553e53e378b59a14b52879728a26.

costacruise/node-app