in shell script:

add config dir option
actually copy gzipped file
fix some minor stuff