Break apart glob/expand functionality