fixing script to work with a comma as a decimal separator

when your Language and Region settings (in the Mac OSX preferences) are set to something that separates decimals with a comma rather than a dot, the script now still works by replacing a comma with a dot after the coordinates have been converted to strings