Fix bug in File.js with root paths