[4.2] Support/ClassLoader : simplify add and remove directory

+1 for `array_diff()`.