fix glob function issues on shared servers