Fix for files opened not in the the current dir.