Merge pull request #187 from phunehehe/postgresql

Postgresql
create virtualenv dir recursively
ensure shmmax for postgres