Use appdir setting to determine application path (GH #44).