Fix dir path for CLI scripts