move ulimit settings to zprofile
use nicer way to find out JAVA_HOME for each JDK