Fixed calling java tools with paths that contains whitespaces

We discovered issues if build is working in directory with whitespaces. This is quick fix without tests (I'm sorry I'm not so good in Ruby that write tests).