small bugfixes

- variable used before init (minor)
- import uses incorrect check for empty pacman group (minor)
Merge pull request #39 from tbinkau/fb3

small bugfixes