Better project directory handling