ant: release target works when run in a submodule

Check for presence of .git, not whether it's a directory.