Updated to work with php 5.4 and newer jrdevsetup cookbook.