refactor: improve post-install script