[SP] Fix for NPC behaviour setting on Linux

Similar fix to d252a69.