fixed #2261: support path format