Copy PostgreSQL data to /var/ramfs if necessary

This is a temporary workaround for https://github.com/travis-ci/travis-ci/issues/2514 while https://github.com/travis-ci/travis-cookbooks/pull/386 is considered and deployed on new build images.