handle virtual env in prompt_callback