Pass perms to mkpath in assert_dirpath