run sed from correct dir