rpm build script autodetection of build directoryx