Make build and prepare executable
Make command line build work correclty, fix issues with tempdir