generalized readlink location

This shouldn't affect the Linux tests.