added workarounds for windows/ruby interaction issue