Fixed a bug where files were being opened in the current directory. Now full path is being used