I realised that the path needed to be relative from where the init function was being call - maybe obvious, but took a while for me to realise. The test function was called a few levels under my internal dir (which was on the same level as the database dir in the question. I just have to: ../../ and so on until I got to the correct level.