Correct issue #26

Correct issue #26.
Improve gradle support when using locally.