adjust "external" script to work under OS X 10.9.2. ref #2