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