Improve the executor by adding a config path checker before performing execmd()