Made checkout and deploy not depending on being in the working tree