The console can receive a list of log locations to display for each app in the Agent view, if log location is directory it fails, so i added fix for that