changed workdir detection