fix #if logic error when using ../