fix how readline is loaded