added check for java; conditional download of crate
use not-fqhn in case of missing domainname
Merge branch 'master' of github.com:crate/crate-utils