refactor devbox's postinstall.sh