Add try/except for os_dep.command failure

The function os_dep.command() should be surrounded by try/except.