Properly pass global options, prevent some commands to be executed inside of shell