Fix: 2787 - Spaces in path to JAVA

Fixes issue when spaces are used in path to java. This happens in console .sh files.

See issue for more related info:

#2787

________________________________
New pull request according to request from lvca:
https://github.com/orientechnologies/orientdb/pull/2789

    Please can you send it against "develop" branch? We use master only for releases.

Hope this is the correct way to do this. 

I set base fork to orienttechnologies/orientdb base: develop