Add dynamic lookups for file paths in tree

- Add ability to dynamically retrieve latest commits. This currently
  does not work for folders at the moment.