Change ".beam" -> code:objfile_extension()