set home dir for build path for java process too
use maxpermsize of 128M and get heap size from MEMORY_LIMIT variable
cosmetics