Fix jpeg build script