FIX: resolve_link works if the file is actually a link