fix for app-mounted directories (thanks @mkasick)