Allow backends to start with if, include or else

Cherry pick changes from master to allow it.

Fixes: #1439