realpath implementation
relpath implementation