fix compilation on some distros
clear getenv buffer
add send command