renamed vars from _INSTALL_DIR TO _HOME
renamed _INSTALL_DIRs to _HOMEs
Added check for OMETAJS_HOME in case this script is called independently.