removed debugging output. added removal of repeated jre/jre etc in so path