tweaking directory navigation to work on DotCloud and local