Improve compatibility with linux environment.