Support of explicit cwd

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