Run expand before perl, to make sure things are properly aligned