this method does not break relative paths

the method dir = dir:gsub("%.", "/")