fixed swiftdir.exists if the dir is a container