Exclude the sfsm demo folder at all costs

sfsm demo contains a global Demo variable and sfsm does not rely on this
variable. Also, change the allocation referencing to detect based on a
boolean value instead of a number.

@vanchi-zendesk