std.path.absolutePath should accept mutable pathnames.

Fixes: https://issues.dlang.org/show_bug.cgi?id=12083
To fix compile error when you can't convert const to immutable. This should be harmless since immutability is not required here (we're just constructing a new path with `buildPath`, so it should be fine as long as it's `const`).