Fixed detection of EDITOR and use -f switch for Git core.editor