De-~[] std::path

Remove the use of ~[] from Path's internals.