Update get_dependencies.py

Update get_dependencies.py to use os.path.join() for some paths