Fix cases where virtualenv attribute is not set
Create directory before git cloning
Fix mysql data dir permissions