got rid of error messages when no AWS tools are installed
substring the zsh way, not the ksh way