Run escapeshellarg directly
Cleanup functions
Assume setting debug to enabled
Remove old function