fix build dep & handle URL for git