Use ~ instead of realpath