Compare resolved paths for parent test

Fixes issue with `.` being considered a parent path for `../`