cast ruby version to string when creating a path to a lock file