Fix ~ is detect as Home Dir