Updated to handle virtualenv prompt and auto workon.