Fixed error handling inside makepkg phase