async version of glob was not working as it should, now using sync