Respect appPath when loading configuration

Fixes #891