Update Script Downloader.py

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