Updated the package uploading function to deal with incomplete paths