use correct base path in command line tool