Changed outfile location from current to sdc file dir