Rewrite to handle OL6 vs Debian7