use project.afterEvaluate {} to defer configuration

Fixes #16 

Not sure what other side-effect this has, but works fine so far in my project.

see http://stackoverflow.com/a/25388282 for a discussion