Check whether the custom directories in PATH exist before adding them.