fix issue with paths, could not find config and crashed when installed as npm module