fixing glob pattern matching