fix trait detection for php < 5.4.0
Merge pull request #3 from temp/feature/php53fix

Fix a regression for PHP < 5.4.0