Change sub-routine name s/canonpath/canon_path/. Add canon_filepath to use slashs on windows.
Add test for windows