Provide a default value for os.name to avoid NPE in some cases.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Kill trailing whitespaces.