Handle %setup lines correctly - thanks to Juha for help getting it right

Signed-off-by: David Greaves <david.greaves@jollamobile.com>