Fixes paths and sudo