Fix the temporary filename template so that the original suffix is preserved.
Merge branch 'knu-fix_opening_attachment'

https://github.com/keepassx/keepassx/pull/71