added rudimental support to check which java type is installed. also fixed ld_library_path