add runtime dir support, build to rpm package