Fix script path detection bug in kbash.