Support multiple reference directories

This patch makes it possible to define reference directories like this:
/tmp/foo;c:\tmp\foo, good in setups where the directories can differ.