Check for existance of directories before adding them to the PATH.