bug fix for "js-beautify does not create directory automatically when use '-o' parameter"

it is a bug fix for "js-beautify does not create directory automatically when use '-o' parameter"