Bug fix and new feature
Fixed crash on Windows (32-bit?)
Accept directory as command-line option