fixed cdw to the correct cwd