Set correct file path for wp_generate_attachment_metadata() Fixes #12