Fixed bug where deployment outside of IDEA gave errors.

Fixes #10.