Fixed call to prepublish script
Improved prepublish install script for better response
Rename install to java_check