Make editor script work on Linux for all file types.