adapted bin/display-... and bin/generate-.. to Mac environment