Remove unnecessary always-nil var from #compact

`unless path` already proves `path` to be nil, so why insert it into an array and then compact? 

It also gotta be slightly faster, as `compact` has less items to iterate on. (Benchmark: https://gist.github.com/4428843)