Fixing postinst script execution on clean environment.