use java7 to run secor processes by default
refactor to share the logic to determine which java to use
make sure that we use bash shell
Merge pull request #49 from yswu/yswu_java7

use java7 to run secor processes by default