Can you embed a compiler variable into a #include?
e.g.

#set compiler variable [SCRIPTDIR] = D:\SB5_Projects
#include script "[SCRIPTDIR]\Test.sbi"

The compiler is throwing an error because [SCRIPTDIR] does not get expanded.