[FEATURE] Support "~" in --root-path option.