Support/PathV2: Add remove_filename implementation.