Support of explicit cwd

When file is not in subdirectory of current directory (for example in "../src/\*.\*") then `file.path.replace` does not work. Explicit cwd is required to remove the left side of path.