refined filename pattern match