fix upload functionality with node v0.10.x with does not allow null to be passed to path.join - refs #1948