use salt.utils.valid_url for pip module

Fix #4378