Modified to check suffix before symbolic link check