issue #998: Incorrect application URL for non-system Foxx apps
some cleanup