check whether LEMONPATTERNS_HOME is set

The bash script now first checks whether LEMONPATTERNS_HOME is already set (and only if not, sets it to current directory).