using here-document instead of DATA section

DATA section is not work correctly when used in rbenv environment.
refactor output_static_files