use readLinkSync  to get the realpath first in windows if the file is symbolic link