Check that spec file exists as well.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Make sure ls prints one entry per line so those can be counted properly.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>