make sure globloader doesn't include directories