Fix problem caused by sys.path.append not working properly, changed code
to use os.environ['PATH'] instead