Removed realpath() calls from symlink creation as they were causing different behavior on BSD vs Linux.