Hotfix => change realpath to pathname to avoid symmbolic link resolveing