Remove .g5d/.g5x suffix when making log file name

git-svn-id: https://staden.svn.sourceforge.net/svnroot/staden/staden/trunk@3190 ba6f2710-ca9f-427c-89d3-5bf716dbc8e1