Removed logging debug code. Changed "exec" to "execFile" to prevent shell injection.