Fixed bugs with gradle-plugin when used in sub-project of multi-project build. Closes #14.