fix relative chapter links with Jekyll 1.0
adjust build system for Jekyll 1.0
ruby 1.9 compat