change procfile in function of os