save sourcemaps by basename, check if map already loaded