glob not working as expected