Fix empty app-mounted directories [thanks @mkasick]