added new version of thickness estimatino script that ensures, path exist