remove --application command line option, use detection instead