centralise the get_rosdistro functionality in case we change it later.