fixed two errors (globbing and normpath)

the globbing error was a result of the glob.glob call returning nothing