why not try cd /usr/bin/nmap just to check if the path exist? if it does then try running nmap from there