replace double slash at path and rebuild