Use parent app folder as resources path when available

Looks upwards for an apm folder where the parent is an app folder and use
that as the resources path when available.

This will be more accurate then having a single fixed path on Linux.