The sed pattern didn't correctly match tar.gz files which don't have a dash after the version number. Fixed by explicitly handling both .whl and .tar.gz file extensions with proper naming patterns. Fixes the error: 'mv: source and destination are the same file'