Replaced execSync in order to fix tests for node v0.11