change cwd before looking for source files