Replace deprecated add path command