Move grep pattern to version attribute