Use `sh`  for portability and check user permission before modify $JAVA_HOMEBASE/current
Merge pull request #1 from ykt/master

Use `sh`  for portability and check user permission