Use QCoreApplication::arguments() for genversion

This prevents issues with locales and unicode paths.
Fixes #1177
Merge pull request #6 from Tucos/genversion

Use QCoreApplication::arguments() for genversion