Support auto-tune mode in pgconf.sh
Refactoring