repair contourlines-layer, some functions now with shutil