Remove training spaces and try to avoid racing conditions when creating hsimple.root