Reset the umask() to apply the $mode recursively

mkdir() and chmod() respect the global umask() value.
Reset during the execution of this function, as the mode
is manually indicated.
Fix print of folder name
Do a whole dev. clean by default on the all target
Call the site's local targets on build and clean
Check that we have an app object before using it
Fix error when the file was already there