added conditional logic (can be improved for other versions of bsd/solar...

...is/*nix)