validate --directory value
correct path to applescript lib
apply normalisation of localised numbers, refs #51