fixed sudo value return to use supplied path