check bin/activate existence along with dir existence. Basename strip method change.