Added auto content type identification
Added auto output directory creation check