Session: ensure standalone sha1 used in constructor-like mode

Follow-up of previous patch to make sure the modified code path always
work as expected (previously, attempt to execute module may have
occurred).

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>