Syntax fix for if block and addition of file check for lein executable.