Changed AddPathToAutoload() funcntion code.