Fix java/ec2 on mavericks