Fixed the evaluation of scripts

Refs Behat/Mink#465