Fix check-migrations

It could I was worried about spaces not being escaped properly but since it's already working without I'll leave them out