Some path and directories type cleanup.