Bugfix: Can't open file on fresh install

ref to https://github.com/Codiad/Codiad/issues/367