use Symfony 3.0 dir structure if available in ScriptHandler

This should fix #71