Hopefully this time in a way that doesn't ruin life for Unix folks!
Still some TODOs left. Probably only works on Linux for now.