The current mechanism you're using is bound to fail in many WordPress configurations. WP_Serve_File supports several ways to generate the manifest file (it will always use the best option according to the permissions the WordPress configuration has).