Fixes uploading files where media wasnt enqueued
Fixes finding script on plugins (was bugged)