I am trying to compile dub from source but I get this error.

$ ./build.sh 
Generating version file...
Running dmd...
source/dub/generators/cmake.d(20): Error: module std.string import 'replace' not found, did you mean 'template Replace(T, U, TList...)'?

It seems the problem is on this line:

import std.string: format, replace;

while there is no replace method in std.string [1] [2].

Am I doing anything wrong here?

[1] https://github.com/D-Programming-Language/phobos/blob/master/std/string.d
[2] http://dlang.org/phobos/std_string.html