[MRG] use /dev/shm as advertised in the documentation when possible

Fix for #148: /dev/shm was never used even when available. Added a non-regression test that should only execute on platform that support it (typically linux).

Let's see if travis likes that.