Fix for files opened not in the the current dir.
Merge pull request #2 from iurifq/master

Fix for files opened not in the the current dir.