Updated external commands to work with both curl and wget.