Debian: Fix processing of static devices.

If there was no new line between interface definitions
the previous logic would have skipped defining the interfaces
with XAPI

Also fix ordering of interfaces_to_reconfigure