Trim prefix path for embeded app