refactor archivematica detection to use bagit profile