Cleans up rc file