run sniper in the correct working dir