Added legacy support for matlab versions <2012b in aarecipe