fixed "Invalid argument supplied for foreach()" when called from a phar ...

On a Symfony2 project packaged as phar I had "Invalid argument supplied for foreach()" for CSS files as well as for JS files. Works fine if the same project is not packaed as phar. This patch fixes it for me for both: Symfony2 project packaged as phar and non-phar.