Use split() instead of 3-arg glob()