fix weird imake script bug