elide invalid tmp tests and update path testing to use filepath.FromSlash()

replace /tmp/ with os.TempDir() so that the tmp tests are os independent