fix up bootstrap; support both online and offline mode
small fix in bootstrap when custom R location is used