simplify configure scripts even more

also add support for passing arguments