Fixed behaviour of 'handle_postinstall', where empty commands where being executed due to interference between the pre postinstall script code and the standard postinstall code.