osdeps: fix handling of AUTOPROJ_OS if :force is true

If force was true, the AUTOPROJ_OS environment variable was completely
ignored which led to returning the real operating system instead of
the one passed explicitly by the caller.