add check for building documentation, fix install location