Refers to the wrong scope for the directory when making hierarchy files