common_path_prefix accepts / and \ as separators

The common_path_prefix implementation only used os.path.sep for
splitting the string, which doesn't handle filenames with / separators
on windows causing tests to fail.
Added test cases for JST directories