Fix symlink errors
Change PATH_MAX to DIR_PATH_MAX to avoid redefinition of macros
Check for symlink existance
Fix symlink test