Replaced File.expand_path with custom expand_path that works also on windows.