correction of custom build commands for mac,
some cleanup