SOFTHSM-94: umask affecting the calling application.
Merge pull request #11 from bellgrim/SOFTHSM-94

SOFTHSM-94: umask affecting the calling application.