Added some options for subprocess.* to make the script portable across different distro's example it now also works on RHEL7