public static void main(String[] args) throws Exception {
File out_dir = new File("target/compiled");
out_dir.mkdirs();
BeamLoader beamParser = new ErjangBeamDisLoader();
for (int i = 0; i < args.length; i++) {
if (args[i].endsWith(".beam")) {
File in = new File(args[i]);
if (!in.exists() || !in.isFile() || !in.canRead())