GEOS-6245: fixed missing samples folder creation

Fixed folder creation for legend samples, if missing