Fixed CMD::APP::isRealApp(). Now support symlinks