Made itemmake working for all operating systems