We have to use /dev/shm for cache and log only with vagrant

This change fix an issue when we do not use vagrant for this project