Revert Path extension source in this branch.
Will revert this revert once extension casting is fixed.