Made more robust to running maz from other folders.