moving commands externalip and internalips to bash_utils