[[ Bug 12081 ]] OSX picking wrong file extension for filenames with two ...

...'.' characters