check exit of codes included shell commands

WARNING This Change may break your current setup!