build: Fix also respect symlinks

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>