write my own realpath, rm program dependence
reluctantly make this a bash script