Fix regex so EDITOR=/usr/bin/vim works

Quick fix for issue #40