Fixed to use glob module