mod: refactory add-subdirs-to-load-path and remove it function