changing *.opt to *
adding new script to manuplate the dir struct