Fix specs to expand the filename before comparison

* This should fix some spec failures under ruby 1.8