Correctly check return value of glob.

Whether glob returns false or an empty array is platform dependent, so handle both.