fix curl verbosity and error message display

some functions add to REMOTE_CMD_OPTIONS, so only check the first two characters for "-w"...

while there, fix an error message so it displays even if the failure happened in verbose mode