Fixed bugged with upload not detecting script status correctly