Fix open_editor to make the file path relative to the project root