fixed if statement in emacs installation