Remove unix specific code. This method should work on all platforms.