make sure the expected target dir is not a file either