Fixed problem with wildcard filenames causing invalid existence check