swap usage: Extended to work with RHEL 5, 6 and 7.