Fix for "unary operator expected" and "file exists" issues with the installer

Just added some more tests.