pytests: add helper to grab a directory from environment