Fixed a bug which caused Nmap to be unable to have any runtime interaction when called from sudo or from a shell script