fix recursion when versions app is enabled, returning '.'