common: Cleaning mount point if fatal_error occurs

When getting a fatal_error we shall clean all existing mount points.
Let's create a specific function to handle this and call it from
fatal_error() but also from cleanup()
packages: Using RELEASE if DIST isn't setup

When calling packages functions for the upgrade script, DIST is not
setup while RELEASE is. Let's use RELEASE as a workaround in such
configuration.