find baseDir based off of htmlFile property.