Minor fixes regarding coding style
'os' module has already been imported
Make use of `$PATH` wherever possible