Fix "mkdir : no such file or directory" error

This was showing up because /var/lib/docker doesn't exist, so "readlink -f" was returning the empty string, which "docker -g" didn't take too kindly to.
Merge pull request #239 from tianon/fix-mkdir-no-such-file

Fix "mkdir : no such file or directory" error