Update glob to latest, refactor to use sync method instead of deprecated approach