Mac OSX hates readlink, updated to close #19