Only change urls if they're present

:convenience_store: 

Closes https://github.com/opscode/supermarket/issues/921