Fixed AttributeError in mrfgen and changed execution permission.