Handle autoenv
Proper format bash scripts and ignore media dir.