Add support of Amazon Linux, fix dependence between package and config (it will newer try to edit config before install package)