move root module actionto after saving of madfile
move root module actionto after saving of madfile
somewhat more resilient to files with spaces