Make base directory configurable from command line