Make it possible to specify which path to open

This makes it possible to provide a string for the open configuration parameter. When a string is given this will be used as the path to open.

I didn't write tests for this yet, because i don't know how to mock (or spy on) the open package.