scm relies on dir passed, not pwd