added suport for --app flag to be used outside the context of an app directory