Update Script Downloader.py

Use rpartition(), lstrip(), and op.path.splitext() to simplify parsing.