fix: goto source directory before invoking git command