modified the getm2headers script with absolute path