Fix permissions, track debugness of builds