correct the order of #include
added split_path() and unit test