Handle directory structure correctly in scripts