changed path so /usr/local/bin comes before /usr/local and added requirement for pip to only run when a virtualenv is running.