fixed bugs with pear installs and java home