Fixed all osx pid file issues