Output `.semafor` file to same dir as input file