Prefer serve_static_files if it exists

Fixes rails/rails/master build.

/cc @rafaelfranca