Changed the way empty command file is handled.