fix get upload dir from vendor directory