bugfix - set HOME to JDIR correctly