The ability to pass file names to Yaml::parse() was deprecated

First of all, sorry for re-adding pull request, but now its is more cleaned up :)

2.7 Yaml package throws error (The ability to pass file names to Yaml::parse() was deprecated in 2.7 and will be removed in 3.0.)  due to this. In my case it broke some build processes so I  needed to downgrade.