Fix errors for file objects
Merge pull request #9 from gregersrygg/resolve-path-for-file-descriptors

Fix errors for file objects