Fix update.py to handle nested blob path

Fixed update.py to handle cases where blob is a path and not a file, e.g. blob = path/to/file