Fix for application dir for single command apps and optional config.