Autopatch fails when using csh