path wrangling when called from the CLI