Fix relative symlink support

A recent change (I think 2d25577e1104101c67bb5ac41790693780a6d51b) broke support for creating relative symlinks. This should fix it.