Fix bug in glob handling. Fixes #19

Change-Id: I187c9e0edb3bba408ad5d51645670826206b672c