Cleanup PATHs before changing them

Trying to clean the PATH and MANPATH before change them.