bugfix: moved require tmpdir from specs to lib, since that's where it's needed

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>