make upstream directory if it doesn't exist