set path before detecting commands