fixed path shorthand resolution an a race condition in getFile()