Applied changes as suggested in the comments in https://github.com/nikhilk/scriptsharp/pull/353