Add ruby blocks to conditions

Correct the conditional logic applied by the composer LWRP to decide
when actions can be taken.

This resolves #14
Merge pull request #17 from inviqa/feature/fix-composer-conditions

Add ruby blocks to conditions