Cleanup PATHs before changing them