Fixed directory structure to build `main` and `fint` packages correctly.