not save empty swapdevs array
Also several fixes in PKGBUILD