BC fix for cakephp < 2.1

Closes #29
Merge pull request #30 from rchavik/bc-fix

BC fix for cakephp < 2.1