Added path extraction in the commandline