using "mkdir -p #{tmp_path}" would be a little clearer.  Also, mkdir -p will only work on *nix platforms.  If someone is running on windows this will attempt to create a directory named "-p" as well as the tmp_path directory.