Adding some bash flags. I really need to test this on a virtual machine. Soon.