fix to_unix_path handle nopath input.
almost done for provsion