Made the code handle absolute paths to archive