added code to identify machine arch and appended in dir-name used to build openjdk image