Uploaded feature in referral form was creating Uncaught Exception error in debug mod, relating to: $obj = new COM

Replaced with new directory size function.