adding flags to indicate the app with be opened with a dir as arg.