Purge each basedir separately
Merge pull request #73 from ssm/bugfix/purge_environments

Purge each basedir separately