Making Changes to make file to work correctly with MACOS