Put chmod command in before_install section.