Fixes duplicated file path when using convert with +adjoin.