add directory to file info and use it to fix back button in detail view