Call normalizePath only in public functions