added getsuffix() global function
the IOTarget and FileTarget now create the directories already so the implementor of ~.build_file() does not have to do it.