add --regex option. improve logging. minor windows path fix.