ensure that executable is str