make formatPosixKey behave better
Merge pull request #131 from byxorna/will-replace-dash-in-shellscript-variables

make formatPosixKey behave better