gen-scripts: work without args in default dir

When ImageJ has been installed to the default location
($OMERO_PREFIX/lib/ImageJ.app), and gen-scripts is then called
without the OMERO directory passed as an argument, the script
now detects that situation and finds OMERO anyway.