Detecting the path variable

First priority - Take the path provided
Fallback to extract from $PATH. Takes first occurrence in the order of $PATH
You might want to take a look at `os.path.normpath` and `os.path.abspath`.