Module for executing shell commands in a consistent and clean manner