fn rebuild_project(project_dir: &Path, use_beta: bool) -> bool
Rebuild the project using cargo
Returns true if the build was successful, false otherwise