[WIP] Use ScriptHandler::setPermissions()

WIP PR https://github.com/sensiolabs/SensioDistributionBundle/pull/126