rewrite app(.src) files, use beam_lib to avoid loading modules