Fix to prepare bin dir
nightly use to_string instead of to_str