Use correct way to create path to resources in tests (because of bug in Linux environment).