Added corner-case exception when is executed by some shell.