Solved the mkvirtualenv issue by explicitly sourcing the virtualenvwrapper.sh script