Moved with_temp_dir/2 from swipe to fileutils and added in_temp_dir/1
Makefile standardisation
fixes to memo_mode handling and other miscellanea