Avoid '/', '\\' and ':' in build path when --compiler specifies a complex path. Fixes #412.