add a realpath script for os x