affile: path resolving replaced by a realpath() based implementation

Signed-off-by: Budai Laszlo <lbudai@balabit.hu>