Move OS helpers to a separate directory