deb rpm: restricts max execution time to prevent hanging

GitHub: #61

Reported by firewood. Thanks!!!