Fix crash when no leftover processes exists (broken by [5ad8c12b6f])
Fix cleaning the wrong building dir by storing/reading a proper pkgname (missed from [c5f64d9bd0])