[OptimizeUse] add behat feature
File: fix relativePath calculation for working dirs with trailing slash, add a test
behat: fix expecations on windows