removing references in exec to comply with php 5.4