shell script to minify and merge files