Fixed file existence test for wildcard