Extract erlang term writing to utils
Make get_real_path private
Only generate test .app files when testing

To prevent the .apps from being picked up when exrm is a dependency of a
project, generate them dynamically when testing, and delete them on
teardown.