String methods dir and dirPath use 'golbs' instead of regular expression. It's more intuitive. This change might break old programs.