fix finding workdir