refactored rspec task to consider settings from yml file

This fixes an issue where directory settings are not considered when checking for coverage.