fixed diretory creation if changed from default, fixed options in the template