Improve path_getabspath() in Unix.