Fix errant use of .to_s instead of .path