Small improvements

Fix path alias replacing issue and Windows path splitter issue.
Sort output by dependencies order.