Rewrite manifest.py for older Python

Fix tar command for file name transform