1314: fixing configure to work with non-default build output path